<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Focus Admin: Creative Admin Dashboard</title>
    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">
    <!-- Styles -->
    <link href="./../assets/css/lib/calendar2/pignose.calendar.min.css" rel="stylesheet">
    <link href="./../assets/css/lib/chartist/chartist.min.css" rel="stylesheet">
    <link href="./../assets/css/lib/font-awesome.min.css" rel="stylesheet">
    <link href="./../assets/css/lib/themify-icons.css" rel="stylesheet">
    <link href="./../assets/css/lib/owl.carousel.min.css" rel="stylesheet"/>
    <link href="./../assets/css/lib/owl.theme.default.min.css" rel="stylesheet"/>
    <link href="./../assets/css/lib/weather-icons.css" rel="stylesheet"/>
    <link href="./../assets/css/lib/menubar/sidebar.css" rel="stylesheet">
    <link href="./../assets/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="./../assets/css/lib/helper.css" rel="stylesheet">
    <link href="./../assets/css/style.css" rel="stylesheet">
</head>
<body>
<%--<c:out value="#{path}"></c:out>--%>
<%--<c:out value="${pageContext.request.contextPath}/WEB-INF/houtai"></c:out>--%>
<!-- 导航栏 -->
<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <div class="logo"><a href="#"><!-- <img src="assets/images/logo.png" alt="" /> --><span>想恋爱</span></a>
                </div>
                <li class="label">菜单</li>
                <li>
                    <a href="${pageContext.request.contextPath}/return/returnIndex.do">
                        <i class="ti-home"></i> 用户管理
                        <%--<span class="badge badge-primary">2</span>--%>
                        <%--<span class="sidebar-collapse-icon ti-angle-down"></span>--%>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <i class="ti-book"></i> 博客管理
                        <%--<span class="sidebar-collapse-icon ti-angle-down"></span>--%>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- /# sidebar -->
<div class="tlinks">Collect from <a href="#">这是一个小玩意</a></div>

<div class="header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="float-left">
                    <!-- 标题格 -->
                    <div class="hamburger sidebar-toggle">
                        <span class="line"></span>
                        <span class="line"></span>
                        <span class="line"></span>
                    </div>
                </div>
                <div class="float-right">
                    <div class="dropdown dib">
                        <div class="header-icon" data-toggle="dropdown">
                                <span class="user-avatar"><c:out value="${sessionScope.user['userUname']}" default="姓名"></c:out>
                                    <i class="ti-angle-down f-s-10"></i>
                                </span>
                            <div class="drop-down dropdown-profile dropdown-menu dropdown-menu-right">
                                <div class="dropdown-content-body">
                                    <ul>
                                        <li>
                                            <a href="#">
                                                <i class="ti-user"></i>
                                                <span>个人信息</span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="ti-power-off"></i>
                                                <span>退出</span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-r-0 title-margin-right">
                    <div class="page-header">
                        <div class="page-title">
                            <h1>Hello, <span>欢迎来到博客管理</span></h1>
                        </div>
                    </div>
                </div>
                <!-- /# column -->
                <div class="col-lg-4 p-l-0 title-margin-left">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                                <li class="breadcrumb-item active">Home</li>
                            </ol>
                        </div>
                    </div>
                </div>
                <!-- /# column -->
            </div>
            <!-- /# row -->
            <section id="main-content">
                <div class="row">
                    <!-- /# 用户表单 -->
                    <div class="col-lg-8">
                        <div class="card">
                            <div class="card-title pr">
                                <h4>用户博客表</h4>
                            </div>
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table student-data-table m-t-20">
                                        <thead>
                                        <tr>
                                            <th><label><input type="checkbox" value=""></label>博客ID</th>
                                            <th>博客标题</th>
                                            <th>发布时间</th>
                                            <th>发布人</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <%--<c:out value="${sessionScope.bokeList}"/>--%>
                                        <c:forEach var="boke" items="${sessionScope.bokeList}" begin="0"
                                                   end="2" step="1">
                                            <tr>
                                                <td><c:out value="${boke.bokeId}"></c:out></td>
                                                <td><c:out value="${boke.bokeTitle}"></c:out></td>
                                                <td><c:out value="${boke.bokeDate}"></c:out></td>
                                                <td>
                                                    <c:out value="黄楷"></c:out>
                                                        <%--${boke.userId}--%>
                                                </td>
                                                <td>
                                                    <%--<button type="button" class="btn btn-default">查看</button>--%>
                                                    <button type="button" class="btn btn-default">修改</button>
                                                    <button type="button" class="btn btn-default" onclick="del(${boke.bokeId})">删除</button>
                                                </td>
                                            </tr>
                                        </c:forEach>

                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /# column -->
                </div>


                <div class="row">
                    <div class="col-lg-12">
                        <div class="footer">
                            <p>2018 © Admin Board. - <a href="#">stx.com</a> / More Templates <a href="#"
                                                                                                 target="_blank"
                                                                                                 title="项目三部">项目三部</a> -
                                Collect
                                from <a href="#" title="鸿鹄小组" target="_blank">鸿鹄小组</a></p>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
<script>
    function del(id) {
        var flag = confirm("确定删除此博文吗？");
        if(flag){
            document.location.href = "${pageContext.request.contextPath}/loveBoke/delBokeById.do?bokeId="+id;
        }
    }
</script>
<!-- jquery vendor -->
<script src="./../assets/js/lib/jquery.min.js"></script>
<script src="./../assets/js/lib/jquery.nanoscroller.min.js"></script>
<!-- nano scroller -->
<script src="./../assets/js/lib/menubar/sidebar.js"></script>
<script src="./../assets/js/lib/preloader/pace.min.js"></script>
<!-- sidebar -->

<script src="./../assets/js/lib/bootstrap.min.js"></script>
<script src="./../assets/js/scripts.js"></script>
<!-- bootstrap -->

<script src="./../assets/js/lib/calendar-2/moment.latest.min.js"></script>
<script src="./../assets/js/lib/calendar-2/pignose.calendar.min.js"></script>
<script src="./../assets/js/lib/calendar-2/pignose.init.js"></script>


<script src="./../assets/js/lib/weather/jquery.simpleWeather.min.js"></script>
<script src="./../assets/js/lib/weather/weather-init.js"></script>
<script src="./../assets/js/lib/circle-progress/circle-progress.min.js"></script>
<script src="./../assets/js/lib/circle-progress/circle-progress-init.js"></script>
<script src="./../assets/js/lib/chartist/chartist.min.js"></script>
<script src="./../assets/js/lib/sparklinechart/jquery.sparkline.min.js"></script>
<script src="./../assets/js/lib/sparklinechart/sparkline.init.js"></script>
<script src="./../assets/js/lib/owl-carousel/owl.carousel.min.js"></script>
<script src="./../assets/js/lib/owl-carousel/owl.carousel-init.js"></script>
<!-- scripit init-->
<script src="./../assets/js/dashboard2.js"></script>
</body>

</html>
